// Type: System.Windows.Controls.ChildWindow
// Assembly: System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// Assembly location: C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll

using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls.Primitives;
using System.Windows.Media;

namespace System.Windows.Controls
{
    [TemplateVisualState(Name = "Open", GroupName = "WindowStates")]
    [TemplatePart(Name = "CloseButton", Type = typeof (ButtonBase))]
    [TemplatePart(Name = "ContentPresenter", Type = typeof (FrameworkElement))]
    [TemplatePart(Name = "Root", Type = typeof (FrameworkElement))]
    [TemplatePart(Name = "Chrome", Type = typeof (FrameworkElement))]
    [TemplatePart(Name = "Overlay", Type = typeof (Panel))]
    [TemplatePart(Name = "ContentRoot", Type = typeof (FrameworkElement))]
    [TemplateVisualState(Name = "Closed", GroupName = "WindowStates")]
    public class ChildWindow : ContentControl
    {
        public static readonly DependencyProperty HasCloseButtonProperty;
        public static readonly DependencyProperty OverlayBrushProperty;
        public static readonly DependencyProperty OverlayOpacityProperty;
        public static readonly DependencyProperty TitleProperty;
        public ChildWindow();
        public bool HasCloseButton { get; set; }
        public Brush OverlayBrush { get; set; }
        public double OverlayOpacity { get; set; }
        public object Title { get; set; }

        [TypeConverter(typeof (NullableBoolConverter))]
        public bool? DialogResult { get; set; }

        public void Close();
        public override void OnApplyTemplate();
        protected virtual void OnClosed(EventArgs e);
        protected virtual void OnClosing(CancelEventArgs e);
        protected override AutomationPeer OnCreateAutomationPeer();
        protected virtual void OnOpened();
        public void Show();

        public event EventHandler Closed;
        public event EventHandler<CancelEventArgs> Closing;
    }
}
